package com.zhku.onlineshop.Service.impl;

import com.zhku.onlineshop.Dao.UserDao;
import com.zhku.onlineshop.Pojo.User;
import com.zhku.onlineshop.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private  UserDao userDao;
    @Override
    public boolean AddUser(User user) {
        return userDao.AddUser(user);
    }

    @Override
    public boolean UpdUserById(User user) {
        return userDao.UpdUserById(user);
    }
}
